<?php	$atr=array(
					"name"=>"MAS",
					"onsubmit"=>"return checkMAS()"
				  ); 
	echo form_open('MAS/edit1',$atr);
	$bar="MonthlyAllowStaff Edit"; 
?> 

<table id="box-table-a" cellspacing="1" align="right" width="900px">
	<tr>
		<td colspan=7 align=right class=bar><?php echo $bar;?></td>
	</tr>
	<tr>
		<th>MAS_ID </th>
		<th>Staff_ID</th>
		<th>MonthlyAllow_ID</th>
		<th>ActiveDate</th>
		<th>EndDate</th>
		<th>Action</th>
	</tr>
	<tr>
		<td><input type="text" name ="MAS_ID" readonly="readonly" value=<?php echo $result->MAS_ID; ?>></td>
		<td><?php echo form_dropdown('Staff_ID', $staff,$result->Staff_ID );?></td>
		<td><?php echo form_dropdown('MonthlyAllow_ID', $monthlyAllow,$result->MonthlyAllow_ID );?></td>    
   		<td><input type= "text" name ="ActiveDate" size="10" value=<?php echo $result->ActiveDate; ?> id="Date" onclick="loadCalendar(this.id);"> </td>		
   		<td><input type= "text" name ="EndDate" size="10" value=<?php echo $result->EndDate; ?> id="Date1" onclick="loadCalendar(this.id);"> </td>
   		 <td align="center"><input type="submit" id="submit" value="edit"/> </td>
	</tr>
</table>
